#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>

int find_sg(int x)
{
	if (x % 8 == 0) return x - 1;
	else if (x % 8 == 7) return x + 1;
	return x;
}

int main()
{
	int T; scanf("%d", &T);
	while (T--) {
		int a, n, i, ans=0;
		scanf("%d", &n);
		for (i = 0; i < n; i++) {
			scanf("%d", &a);
			ans = ans ^ find_sg(a);
		}
		if (ans == 0) printf("Second player wins.\n");
		else printf("First player wins.\n");
	}
}

